package dmp.log;

import java.util.ArrayList;
import java.util.List;

public class Demo {
	public static void main(String[] args) {
		List<String> lines = UrlParseList.elements();
		String beijing = "/bstl/dpiqixin/beijing/";
		String tianjin = "/bstl/dpiqixin/tianjin/";
		String hebei = "/bstl/dpiqixin/hebei/";
		String shanxi = "/bstl/dpiqixin/shanxi/";
		String nmg = "/bstl/dpiqixin/nmg/";
		String liaoning = "/bstl/dpiqixin/liaoning/";
		String jilin = "/bstl/dpiqixin/jilin/";
		String hlj = "/bstl/dpiqixin/hlj/";
		String shanghai = "/bstl/dpiqixin/shanghai/";
		String jiangsu = "/bstl/dpiqixin/jiangsu/";
		String zhejiang = "/bstl/dpiqixin/zhejiang/";
		String anhui = "/bstl/dpiqixin/anhui/";
		String fujian = "/bstl/dpiqixin/fujian/";
		String jiangxi = "/bstl/dpiqixin/jiangxi/";
		String shandong = "/bstl/dpiqixin/shandong/";
		String henan = "/bstl/dpiqixin/henan/";
		String hubei= "/bstl/dpiqixin/hubei/";
		String hunan= "/bstl/dpiqixin/hunan/";
		String guangdong= "/bstl/dpiqixin/guangdong/";
		String guangxi= "/bstl/dpiqixin/guangxi/";
		String hainan= "/bstl/dpiqixin/hainan/";
		String chongqing= "/bstl/dpiqixin/chongqing/";
		String sichuan= "/bstl/dpiqixin/sichuan/";
		String guizhou= "/bstl/dpiqixin/guizhou/";
		String yunnan= "/bstl/dpiqixin/yunnan/";
		String xizang= "/bstl/dpiqixin/xizang/";
		String shanxisheng= "/bstl/dpiqixin/shanxisheng/";
		String gansu= "/bstl/dpiqixin/gansu/";
		String qinghai= "/bstl/dpiqixin/qinghai/";
		String ningxia= "/bstl/dpiqixin/ningxia/";
		String xinjiang= "/bstl/dpiqixin/xinjiang/";
		
		List<String> ps=new ArrayList<>();
		ps.add(beijing);
		ps.add(tianjin);
		ps.add(hebei);
		ps.add(shanxi);
		ps.add(nmg);
		ps.add(jilin);
		ps.add(hlj);
		ps.add(shanghai);
		ps.add(jiangsu);
		ps.add(zhejiang);
		ps.add(anhui);
		ps.add(fujian);
		ps.add(jiangxi);
		ps.add(shandong);
		ps.add(henan);
		ps.add(hubei);
		ps.add(hunan);
		ps.add(guangdong);
		ps.add(guangxi);
		ps.add(hainan);
		ps.add(chongqing);
		ps.add(sichuan);
		ps.add(guizhou);
		ps.add(yunnan);
		ps.add(xizang);
		ps.add(shanxisheng);
		ps.add(gansu);
		ps.add(qinghai);
		ps.add(ningxia);
		ps.add(xinjiang);
		
		
//		int count=0;
//		for (String line : lines) {
//			if(line.contains(tianjin)){
//				count++;
//			}
//		}
//		System.out.println(count);
		
		for (String pp : ps) {
			int count=0;
			for (String line : lines) {
				if(line.contains(pp)){
					count++;
				}
			}
			System.out.println(pp+"  "+ count);
		}
	}
}
